package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum SourceStatus {
    sourceStatus_01(101, "已开始"),
    sourceStatus_02(102, "已结束"),
    sourceStatus_03(103, "已暂停"),
    sourceStatus_04(104, "待充值"),
    sourceStatus_05(105, "未开始"),
    sourceStatus_06(106, "进行中");


    private Integer sourceStatus;
    private String sourceStatusName;


    public static String getSourceStatusValue(int index) {
        for (SourceStatus value : SourceStatus.values()) {
            if (value.getSourceStatus() == index) {
                return value.getSourceStatusName();
            }
        }
        return null;
    }
}
